<?xml version="1.0" encoding="utf-8"?>
<hibernate-mapping assembly="Model" namespace="Model" xmlns="urn:nhibernate-mapping-2.2">
  <class name="Policy" table="Policy" lazy="true" >
    <id name="Id" column="Id"  >
      <generator class="identity"/>
    </id>
    <property name="Number">
      <column name="Number" sql-type="bigint" not-null="true" />
    </property>
    <property name="PersonID">
      <column name="PersonID" sql-type="int" not-null="true" />
    </property>
    <many-to-one insert="false" update="false" lazy="false" name="Person">
      <column name="PersonID" sql-type="int" not-null="true" />
    </many-to-one>

    <joined-subclass
          table="MotorPolicy"
          name="MotorPolicy">
      <key column="Id"/>
      <property name="PlateNo"/>
    </joined-subclass>
        
  </class>
</hibernate-mapping>